import request from '@/utils/request'

export function orderIndex(query) {
  return request({
    url: '/order/index',
    method: 'get',
    params: query
  })
}
export function orderDetail(query) {
  return request({
    url: '/order/detail',
    method: 'get',
    params: query
  })
}
export function orderAdd(data) {
  return request({
    url: '/order/add',
    method: 'post',
    data
  })
}
export function orderEdit(data) {
  return request({
    url: '/order/edit',
    method: 'post',
    data
  })
}
export function updataStatus(data) {
  return request({
    url: '/order/updataStatus',
    method: 'post',
    data
  })
}
